#!/usr/bin/env node
const commands = require('./commands')
const commander = require('commander')
const shellHelper = require('./libs/shellHelper')

const argv = process.argv
//贴心服务
argv.length <= 2 && shellHelper.series(['kit -h'])

commander.command('init')
  .arguments('[dirname] [template]')
  .description('从远程模板生成项目')
  .action((dirname, template) => commands.inquirerGitClone(dirname, template))

commander.parse(process.argv);
